//
//  FAlertView.h
//  JoinUser
//
//  Created by xujingjing on 16/6/15.
//  Copyright © 2016年 xujingjing. All rights reserved.
/*
 
 使用 ，引入头文件
 
 调用举例：
 MyAlertMessage * a = [[MyAlertMessage alloc] initWithTitle:@"Hello" WithMessage:@"World"];
 
 [a addButton:BUTTON_OK WithTitle:@"OK" WithAction:^(void *action) {
 NSLog(@"Button OK at index 0 click");
 }];
 [a addButton:BUTTON_CANCEL WithTitle:@"Cancel" WithAction:^(void *action) {
 NSLog(@"Button Cancel at index 1 click");
 }];
 [a show];
 
 
 
 
 */

#import <UIKit/UIKit.h>
@protocol FAlertViewDelegate;

//协议
@protocol FAlertViewDelegate <NSObject>

@optional

- (void)alertClickConfirm;


-(void)FAlertChoseBtnwithNumber:(NSInteger)selectednumber;

-(void)backkey:(NSString *)key;
@end


@interface FAlertView : UIView

@property (assign,nonatomic) id<FAlertViewDelegate> delegate;
/**
 自动消失弹窗
 */
+ (void)showMsg:(NSString *)msg
    cancelDelay:(NSTimeInterval)delay;
/**
 手动消失弹窗
 */
+(void)showTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate canbuttontitle:(NSString *)cantitle otherbutton:(NSString *)otherbuttontitle;


+(void)showTitle:(NSString *)title
         message:(NSString *)message
           money:(float)money
        delegate:(id)delegate;

@end






